package edu.study.ops.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import edu.study.api.common.dto.BaseRespDto;
import edu.study.ops.service.K8sService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

@RestController
@RequestMapping("/api/ops/k8s")
@Api(value = "/api/ops/k8s", produces = "k8s")
public class K8sApiImpl {
	
	@Autowired
	private K8sService k8sService;
	
	@ApiOperation(value = "测试k8s")
    @RequestMapping(value = "test", method = {RequestMethod.GET, RequestMethod.POST})
    public BaseRespDto test() {
		k8sService.listPodForAllNamespaces();
        return new BaseRespDto();
    }
}


